<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>报工系统</title>
    <base href="./">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,minimum-scale=1.0,user-scalable=no">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link href="./assets/css/base.css" rel="stylesheet" type="text/css">
    <!-- <link rel="stylesheet" href="./assets/css/mobiscroll.custom-2.17.0.min.css"> -->
    <!-- <link rel="stylesheet" href="./assets/css/LCalendar.css"> -->
    <link rel="stylesheet" href="./assets/css/newLCalendar.css">
    <link rel="stylesheet" href="./assets/css/form.css">
    <link rel="stylesheet" href="./assets/css/mescroll.min.css">
    <!-- <link rel="stylesheet" href="./assets/css/mobiscroll.custom-3.0.0-beta2.min.css"> -->
    <!-- <script src="./assets/js/mobiscroll.custom-2.17.0.min.js"></script> -->
    <script src="./assets/js/mescroll.m.js"></script>
    <!-- <script src="./assets/js/must.js"></script> -->
    <!-- <script src="./assets/js/LCalendar.js"></script> -->
    <!-- <script src="./assets/js/vconsole.min.js"></script> -->
    <script>
        // var flag = window.localStorage.hasOwnProperty('openId');
        document.domain = 'afcat.com.cn';
        // console.log(window.localStorage.openId);
        // if (flag) {
        //     window.localStorage.removeItem("openId");
        // } else {
        //     window.localStorage.setItem("openId", 'NTk5PC8mL0MxO2Q8NDtoOzs4ZTQ2ZmRlaDM0OGU3NDZpZjk4ZTU0Ojg1')
        // };
        // window.localStorage.removeItem("openId");
        // must.ready(function () {
        //     must.getOpenId({
        //         success: function (response) {
        //             // id = response.openId;
        //             console.log(response.openId);
        //             // _this.getToken(response.openId);
        //             //判断localstorage有没有存储openId;
        //             if (flag) {
        //                 window.localStorage.removeItem("openId");
        //             } else {
        //                 window.localStorage.setItem("openId", response.openId)
        //             };
        //         }
        //     });
        //     // must.hideOptionMenu();
        // });
        (function () {
            if (typeof window.CustomEvent === 'undefined') {
                function CustomEvent(event, params) {
                    params = params || {
                        bubbles: false,
                        cancelable: false,
                        detail: undefined
                    };
                    var evt = document.createEvent('Events');
                    var bubbles = true;
                    for (var name in params) {
                        (name === 'bubbles') ? (bubbles = !!params[name]) : (evt[name] = params[name]);
                    }
                    evt.initEvent(event, bubbles, true);
                    return evt;
                };
                CustomEvent.prototype = window.Event.prototype;
                window.CustomEvent = CustomEvent;
                console.log('进来了生成CustomEvent');
            };
            console.log('函数自调用了');
        })();
    </script>
</head>

<body id="demo1">
    <app-root></app-root>
</body>
<style>
    @import "./assets/css/override.css";
</style>

</html>